package com.gutsyzhan.edoctor.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import reactor.core.publisher.Flux;

@AiService(wiringMode = AiServiceWiringMode.EXPLICIT,
        streamingChatModel = "ollamaStreamingChatModel", chatMemoryProvider = "chatMemoryProvider",
        tools = {"timeTools","appointmentTools"},
        contentRetriever = "contentRetriever"
)
public interface StreamEDoctorAssistant {
    @SystemMessage(fromResource = "prompts/e-doctor-prompt-template.txt")
    Flux<String> chat(@MemoryId int memoryId , @UserMessage String userMessage);
}
